package com.clgk.wechatmall.role.service.impl;

import java.util.List;
import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.clgk.wechatmall.common.sql.Page;
import com.clgk.wechatmall.role.bean.RoleBean;
import com.clgk.wechatmall.role.dao.RoleDao;
import com.clgk.wechatmall.role.service.RoleService;

@Service
@Transactional
public class RoleServiceImpl implements RoleService {

	@Resource RoleDao roleDao;

	@Override
	public List<RoleBean> queryList(RoleBean bean, Page page){
		return roleDao.queryList(bean,page);
	}
	
	@Override
	public Integer deleteByIds(String ids){
		return roleDao.deleteByIds(ids);
	}
	
	@Override
	public Long save(RoleBean bean){
		return roleDao.insert(bean);
	}
	
	@Override
	public Integer update(RoleBean bean){
		return roleDao.update(bean);
	}

}
